<?php

/* @var $this \yii\web\View */
/* @var $content string */
use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use frontend\assets\AppAsset;
AppAsset::register($this);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
    <meta charset="<?= Yii::$app->charset ?>">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="icon" href="/favicon.ico">
    <script type="text/javascript" src="/js/jquery-3.4.1.min.js" ></script>
    <script type="text/javascript" src="/js/tools.js" ></script>
    <link rel="stylesheet" type="text/css" href="/js/layui/css/layui.css" media="all" />
    <link rel="stylesheet" type="text/css" href="/css/public.css" media="all" />
    <link rel="stylesheet" type="text/css" href="/css/iconfont/iconfont.css" media="all" />
    <link rel="stylesheet" type="text/css" href="/css/swiper/swiper.min.css" media="all" />
    <link rel="stylesheet" type="text/css" href="/css/animate.min.css" media="all" />
    <link rel="stylesheet" type="text/css" href="/css/index.css">
	<script type="text/javascript" src="//api.map.baidu.com/api?v=2.0&ak=10ci2Syk2wU83q4CA6KzmOxw5LW32xHO"></script>
	<script type="text/javascript" src="//api.map.baidu.com/api?type=webgl&v=1.0&ak=10ci2Syk2wU83q4CA6KzmOxw5LW32xHO"></script>
    <?= Html::csrfMetaTags() ?>
    <title><?= Html::encode($this->title) ?></title>
    <?php $this->head() ?>
</head>
<body>
<?php $this->beginBody() ?>

<div class="media-header skewing-x">
	<div class="layui-container">				
		<div class="login-box">
				<a href="/user/publish" class="layui-icon"> 发布商品</a>
			<?php if (Yii::$app->user->isGuest) {?>
				<a href="/site/login" class="layui-icon layui-icon-username"> 登录</a>
				<a href="/site/signup">注册</a>
			<?php }else{ ?>
				<a href="/user" class="layui-icon layui-icon-username"> <?php echo Yii::$app->user->identity->username;?></a>
				<a class="ml15" href="/site/logout">退出</a>
			<?php }?>

		</div>
	<div class="bui-box-align-middle">
		<div class="logo">
			<a href="/" title="融媒智投">
				<img src="/img/images/logo.png"alt="融媒智投">
			</a>
		</div>
		<div class="topInfo ml15">
			<a href="javascript:void(0);" ><i class="layui-icon layui-icon-location"></i> <span id="district"></span></a>
		</div>
		<div class="ml30 mr60 f20">融媒体中心</div>
		<div class="span1">
			<ul class="nav mean f16 text-c">
				<li<?= Yii::$app->request->url=='/' ? ' class="active" ' : '';?>><a href="/">首页</a></li>
				<li<?= Yii::$app->request->url=='/goodslist?second_cate=2' ? ' class="active" ' : '';?>><a href="/goodslist?second_cate=2">高速广告</a></li>
				<li<?= Yii::$app->request->url=='/goodslist?second_cate=3' ? ' class="active" ' : '';?>><a href="/goodslist?second_cate=3">市区媒体</a></li>
				<li<?= Yii::$app->request->url=='/goodslist?second_cate=4' ? ' class="active" ' : '';?>><a href="/goodslist?second_cate=4">社区广告</a></li>
				<li<?= Yii::$app->request->url=='/goodslist?second_cate=5' ? ' class="active" ' : '';?>><a href="/goodslist?second_cate=5">电台广播</a></li>
				<li<?= Yii::$app->request->url=='/goodslist?second_cate=6' ? ' class="active" ' : '';?>><a href="/goodslist?second_cate=6">网络媒体</a></li>
				<li><a href="#">制作安装</a></li>
				<li><a href="#">活动场地</a></li>	
			</ul>
		</div>
	</div>
 </div>
</div>	
<?php if (Yii::$app->request->url!= '/') {?>
<div class="media-header-search content">
	<div class="content search">
		<input type="text" name="skey" value="" placeholder="请输入搜索关键词" autocomplete="off" class="layui-input" />
		<button class="layui-btn"><i class="iconfont ss mr10"></i>  搜索</button>
	</div>
</div>
<?php }?>


